package com.jbm.onehome.iface.enums;

/**
 * Created by lyh on 2017-03-15.
 * 代金券来源种类
 */
public enum VoucherSourceType {
    points (1); //   积分兑换
    //其他待扩展


    // 定义私有变量
    private int nCode ;

    // 构造函数，枚举类型只能为私有
    private VoucherSourceType(int _nCode) {
        this.nCode = _nCode;
    }

    @Override
    public String toString() {
        return String.valueOf (  this.nCode);
    }

    public int toValue(){
        return   this.nCode;
    }
}
